<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<meta content="email=no" name="format-detection">
<title>设置</title>
<link th:href="@{/ksdH5/css/public/mui/mui.css}" rel="stylesheet"/>
<script th:src="@{/ksdH5/js/public/mui/mui.min.js}"></script>
<script th:src="@{/ksdH5/js/public/jquery.min.js}"></script>
<script th:src="@{/ksdH5/js/public/public.js}"></script>
<link th:href="@{/ksdH5/css/public/leftNav.css}" rel="stylesheet"/>
<link th:href="@{/ksdH5/css/setUp/setUpList.css}" rel="stylesheet"/>
</head>
<body>
<!--头部-->
<div class="headerBox">
	<a href="javascript:void(0);" class="headerBox_left"><img th:src="@{/ksdH5/img/header_leftIcon.png}"></a>
	<!--关闭按钮-->
	<a href="javascript:void(0);" class="headerBox_leftClose"><img th:src="@{/ksdH5/img/login/closeBnt.png}"></a>
	<span>设置</span>
</div>
<div class="mui-content">
	<div class="setUpList_listBox">
		<a th:href="${#httpServletRequest.getScheme()+'://'+#httpServletRequest.getServerName()+':'+#httpServletRequest.getServerPort()+#httpServletRequest.getContextPath()+'/h5/changeLoginPassword'}" class="setUpList_listBox_inputBox">
			<span>登录密码</span>
			<em>
				<img th:src="@{/ksdH5/img/setUpList_xyjt.png}" />
			</em>
		</a>
		<a th:href="${#httpServletRequest.getScheme()+'://'+#httpServletRequest.getServerName()+':'+#httpServletRequest.getServerPort()+#httpServletRequest.getContextPath()+'/h5/changeTradPassword'}"  class="setUpList_listBox_inputBox">
			<span>交易密码</span>
			<em>
				<img th:src="@{/ksdH5/img/setUpList_xyjt.png}" />
			</em>
		</a>
		<a th:href="${#httpServletRequest.getScheme()+'://'+#httpServletRequest.getServerName()+':'+#httpServletRequest.getServerPort()+#httpServletRequest.getContextPath()+'/h5/privateAgreement'}"  class="setUpList_listBox_inputBox">
			<span>隐私协议</span>
			<em>
				<img th:src="@{/ksdH5/img/setUpList_xyjt.png}" />
			</em>
		</a>
		<div class="setUpList_listBox_inputBox">
			<span>版本信息</span>
			<em>KSD-A-1.3.2</em>
		</div>
	</div>
	<a th:href="${#httpServletRequest.getScheme()+'://'+#httpServletRequest.getServerName()+':'+#httpServletRequest.getServerPort()+#httpServletRequest.getContextPath()+'/h5/logout'}" class="setUpList_bnt" >安全退出</a>
</div>
<!--左侧导航-->
<div class="huiseBox"></div>
<!-- 引入导航页面 -->

<!-- ecr/html/includeNav:是子页面的文件路径 ；myNav：是子页面中被引用代码块的名称
（如th:fragment="myNav"） -->
<div th:replace="h5/ksdH5IncludeNav :: ksdH5Nav"  ></div>
<!--消费卡弹窗-->
</body>

<script type="text/javascript" th:inline="javascript">
//获得项目根路径
var ctx = [[@{/}]];
</script>
 <script type="text/javascript">
 var prefix = ctx +"h5";
    	$(function(){
    		//指定第一个菜单样式选中
    		$(".leftNavContBox_contBox li").eq(6).find("a").addClass('leftNavContBox_contBox_bnt_active');
    		//查询用户信息
    		 $.ajax({
					url : ctx+ "h5/merInfo",
					type : "POST",
					success : function(re) {
					if (re.status == "SUCCESS") {
						var merchant = re.merchant;
						$("#nav_mer_name").text(merchant.merchantCnName);
						$("#nav_mer_phone").text(merchant.phone);
						var level = merchant.level;
						if(level=="1"){
							$("#nav_mer_level").text("免费用户");
						} else if(level=="2"){
							$("#nav_mer_level").text("经理（未激活）");
						} else if(level=="3"){
							$("#nav_mer_level").text("经理");
						}
						//指定头像
						var headImg = re.headImg;
						if(headImg != ""&& headImg !=null){
							$("#head_img").attr('src',headImg);
						}
					} else {
						
					}
				}
			}); 
    	})
    </script>
<script type="text/javascript">
mui.init({
	swipeBack:true
})
/*打开新的下载页面窗口*/
$(document).on('click','#uploadBnt',function(){
	window.open("https://fir.im/Katimes");
})
/*左边导航*/
$(document).on('click','.headerBox_left',function(){
	$('.huiseBox').show();
	$('.leftNavContBox').show();
	$('.headerBox_leftClose').show();
	$('.headerBox_left').hide();
	$("body").attr("style","left:5.48rem;position:fixed;"); 
	$(".headerBox").css('left','5.48rem');   
});
$(document).on('click','.headerBox_leftClose',function(){
	$('.huiseBox').hide();
	$('.leftNavContBox').hide();
	$('.headerBox_leftClose').hide();
	$('.headerBox_left').show();
	$("body").removeAttr("style");   
	$("body").removeAttr("style"); 
	$(".headerBox").css('left','0');   
});
/*选择消费卡*/
$(document).on('click','.smartTopBox_xfk',function(){
	$('.makePlan_xkBg').show();
	$('.smartTopBox_xfkBox').show();
});
/*选择收款卡*/
$(document).on('click','.smartTopBox_skk',function(){
	$('.makePlan_xkBg').show();
	$('.smartTopBox_skkBox').show();
});
$(document).on('click','.makePlan_selectedCardBox_closeBnt',function(){
	$('.makePlan_xkBg').hide();
	$('.smartTopBox_xfkBox').hide();
	$('.smartTopBox_skkBox').hide();
});



</script>
</html>
